<?php

namespace app\services\system;

use app\services\BaseService;
use app\dao\system\SystemMenuDao;

/**
 * Class SystemMenuService
 * @package app\services\system
 */
class SystemMenuService extends BaseService
{
    public function __construct(SystemMenuDao $dao)
    {
        $this->dao = $dao;
    }

    public function getSysList(array $where)
    {
        [$page, $limit] = $this->getPageValue();
        $count = $this->dao->count($where);
        $data  = $this->dao->queryPageList($where, $page, $limit);
        return compact('count', 'data');
    }

}